<template>
	<view class="page">
		<view class="scanCode" v-if="showScan">
			<mumu-get-qrcode @success='qrcodeSucess' @error="qrcodeError"></mumu-get-qrcode>
		</view>
	</view>
</template>

<script>
	import mumuGetQrcode from '@/uni_modules/mumu-getQrcode/components/mumu-getQrcode/mumu-getQrcode.vue'
	export default {
		components: {
			mumuGetQrcode
		},
		data(){
			return {
				showScan:false
			}
		},
		created() {
			this.showScan = true
		},
		methods:{
			qrcodeSucess(data) {
				this.$modal.msgSuccess(data)
				this.showScan = false
			},
			qrcodeError(err) {
				this.$modal.msgError(err + '' || '扫码错误')
				this.showScan = false
			},
		}
	}
</script>

<style lang="scss" scoped>
</style>